import request from "@/utils/request";

//商品场次
export function gettimeTypelist(query) {
  return request({
    url: "/admin/activity/timeType/list",
    method: "get",
    params: query
  });
}

// 商品列表
export function activitygoodslist(query) {
  return request({
    url: "/admin/activity/goods/list",
    method: "get",
    params: query
  });
}


//新增编辑店铺分类
export function goodssaveOrUpdate(data) {
  return request({
    url: "/admin/activity/goods/saveOrUpdate",
    method: "post",
    data: data,
  });
}

//上下架商品
export function putOnOrDown(data) {
  return request({
    url: "/admin/activity/goods/putOnOrDown",
    method: "put",
    data: data,
  });
}

//删除商品
export function removeGoodsInfo(goodsId) {
  return request({
    url: "/admin/activity/goods/" + goodsId,
    method: "delete",
  });
}
//商品排序/admin/goodsInfoController/sort
export function goodsInfoControllersort(data) {
  return request({
    url: "/admin/activity/goods/sort",
    method: "put",
    data: data,
  });
}

//订单列表
export function listOrder(query) {
  return request({
    url: '/admin/activity/order/list',
    method: 'get',
    params: query
  })
}


